package edu.stanford.prpl.api;

import java.net.URL;
import java.util.List;

import edu.stanford.prpl.api.PRPLCommonMethods.DeviceMethod;
import edu.stanford.prpl.api.PRPLCommonMethods.IndexMethod;

public interface PRPLAppClient extends PRPLObjectManager, DeviceMethod, IndexMethod {

	URL getServerURL();

	List<?> executeBatch(BatchRequest batch);

	public interface BatchRequest {

		public static final String METHOD_NAME = "methodName";
		public static final String PARAMS = "params";

		List<?> getBatch();

		boolean addRequest(String methodName, Object... params);
	}
}
